//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_client.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"Client_no":"","Client_name":"","Client_type":"","Client_flag":"","Client_acct_back":"","Client_acct_no":"","Client_tax_no":"","Client_addr":"","Client_email":"","Region_no":"","Client_man":"","Zip":"","Client_tel":"","Client_fax":"","Display_flag":"","Credit_amt":"","Remark":""},
		editFormOptions: [{"title":"客户编号","field":"Client_no","disabled":true},
                               {"title":"客户名称","required":true,"field":"Client_name"},
                               {"key":"客户状态","data":[],"title":"客户标志","field":"Client_flag","type":"select"},
                               {"key":"客户类型","data":[],"title":"客户类型","field":"Client_type","type":"select"},
                               {"type":"group"},
                               {"title":"开户银行","field":"Client_acct_back"},
                               {"title":"银行账户","field":"Client_acct_no"},
                               {"title":"税务登记号","field":"Client_tax_no"},
                               {"type":"group"},
                               {"title":"邮件地址","field":"Client_email"},
                               {"title":"地址","field":"Client_addr"},
                               {"type":"group"},
                               {"key":"city","data":[],"title":"所属地区","field":"Region_no","type":"select"},
                               {"title":"邮编","field":"Zip"},
                               {"title":"联系人","field":"Client_man"},
                               {"title":"电话","field":"Client_tel"},
                               {"type":"group"},
                               {"key":"往来标志","data":[],"title":"往来标志","field":"Display_flag","type":"select"},
                               {"title":"传真","field":"Client_fax"},
                               {"title":"信誉额度","field":"Credit_amt","type":"decimal"},
                               {"title":"备注","field":"Remark","type":"textarea"}],
		searchFormFields: {"Client_no":"","Client_name":"","Client_type":"","Client_flag":""},
		searchFormOptions: [{"title":"客户编号","field":"Client_no"},{"title":"客户名称","field":"Client_name"},{"key":"客户类型","data":[],"title":"客户类型","field":"Client_type","type":"select"},{"key":"客户状态","data":[],"title":"客户标志","field":"Client_flag","type":"select"}],
		columns: [{field:'Client_no',title:'客户编号',type:'string',readonly:true},
                       {field:'Client_name',title:'客户名称',type:'string',link:true},
                       {field:'Client_type',title:'客户类型',type:'int',bind:{ key:'客户类型',data:[]}},
                       {field:'Client_flag',title:'客户标志',type:'string',bind:{ key:'客户状态',data:[]}},
                       {field:'Region_no',title:'所属地区',type:'string',bind:{ key:'city',data:[]}},
                       {field:'Client_man',title:'联系人',type:'string'},
                       {field:'Client_addr',title:'地址',type:'string'},
                       {field:'Zip',title:'邮编',type:'string'},
                       {field:'Client_email',title:'邮件地址',type:'string'},
                       {field:'Client_tel',title:'电话',type:'string'},
                       {field:'Client_fax',title:'传真',type:'string'},
                       {field:'Client_acct_back',title:'开户银行',type:'string'},
                       {field:'Client_acct_no',title:'银行账户',type:'string'},
                       {field:'Client_tax_no',title:'税务登记号',type:'string'},
                       {field:'Display_flag',title:'往来标志',type:'int',bind:{ key:'往来标志',data:[]}},
                       {field:'Credit_amt',title:'信誉额度',type:'decimal'},
                       {field:'Remark',title:'备注',type:'string'}],
		table: {
			key: 'Client_id',
			footer: "Foots",
			cnName: '客户信息',
			name: 'q_client',
			url: "/q_client/",
			sortName: "Client_no"
		}
	}
}
